package org.yenn.pattern.aliyun.behavioral.chain.impl;

import org.yenn.pattern.aliyun.behavioral.chain.AbstractLogger;

/**
 * 步骤 2
 * 创建扩展了该记录器类的实体类。
 */
public class ErrorLogger extends AbstractLogger {
    public ErrorLogger(int level){
        this.level = level;
    }

    @Override
    protected void write(String message) {
        System.out.println("Error  Console::Logger: " + message);
    }
}
